import { defHttp } from "@/utils/http";

// ERP 仓库盘点次数记录 API
export const invtMcheckFreqTotApi = {
	// 获得仓库盘点次数记录分页
	invtMcheckFreqTotList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-mcheck-freq-tot/page`, params });
	},
	// 新增仓库盘点次数记录
	invtMcheckFreqTotCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-mcheck-freq-tot/create`, data });
	},

	// 修改仓库盘点次数记录
	invtMcheckFreqTotUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-mcheck-freq-tot/update`, data });
	},

	// 删除仓库盘点次数记录
	invtMcheckFreqTotDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-mcheck-freq-tot/delete?id=` + id });
	}
};
